package lab02.test07;

public class Student extends Person{
    //属性：学号、学号
    String sno;
    String school;

    public String toString(){
        return "名字是："+name+"  "+"年龄是："+age+"  "+"身份证号是:"+idNum+"  "+"学校是："+school+"  "+"学号是："+sno;
        //"学号是："+sno+"学校是："+school;
    }
}
